#ifndef CONCRETE_MEDIATOR_H
#define CONCRETE_MEDIATOR_H

#include"mediator.h"

class MediatorA:public IMediator{
public:
    virtual void distributeMessage(const IColleague *sender,const std::string &message)const{
        for(auto c:getColleagues()){
            if(c!=sender)
            {
                c->receiveMessage(sender,message);
            }
        }
    }
};
#endif // CONCRETE_MEDIATOR_H
